﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ListAdmin.aspx.cs" Inherits="Manager_ListAdmin" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            height: 20px;
            text-align: center;
            font-size: x-large;
            background-color: #99CCFF;
        }
        .auto-style2 {
            text-align: right;
        }
        .auto-style3 {
            width: 378px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <table align="center" style="width: 63%; height: 335px;">
            <tr>
                <td class="auto-style1" colspan="5"><strong>管理员信息列表</strong></td>
            </tr>
            <tr>
                <td class="auto-style2">搜索类别：</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" Height="18px" Width="110px">
                        <asp:ListItem>工号</asp:ListItem>
                        <asp:ListItem>部门</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td class="auto-style2">关键字：</td>
                <td>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
                <td class="auto-style3">
                    <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Height="250px" style="text-align: center" Width="820px" OnRowCommand="GridView1_RowCommand" OnRowDeleting="GridView1_RowDeleting1" OnSorting="GridView1_Sorting1">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="AdminID" HeaderText="工号" SortExpression="AdminID" />
                            <asp:BoundField DataField="AdminName" HeaderText="姓名" />
                            <asp:BoundField DataField="PassWord" HeaderText="密码" />
                            <asp:TemplateField HeaderText="部门">
                              <ItemTemplate >
                                  <%#getDepartName (DataBinder .Eval (Container .DataItem ,"DepartmentID").ToString ()) %>
                              </ItemTemplate>    
                            </asp:TemplateField>                                                   
                            <asp:TemplateField HeaderText="是否考评人员">
                                <ItemTemplate >
                                    <%#Isassess(Convert .ToInt32 (Eval ("IsAssessMan"))) %>
                                </ItemTemplate>
                            </asp:TemplateField>                       
                            <asp:TemplateField HeaderText="编辑">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit">编辑</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
